package org.singleton.ex2;

import java.util.HashMap;
import java.util.Map;

import org.singleton.ex2.SingletonCache;

public class SingletonCache {
	private final static String DEFAULT_KEY = "one";

	private static Map<String, SingletonCache> map = new HashMap<String, SingletonCache>();

	private SingletonCache() {
	}

	public static SingletonCache getInstance() {
		SingletonCache instance = new SingletonCache();
		map.put(DEFAULT_KEY, instance);

		return instance;

	}
}
